package com.example.zk.controller;

import com.example.common.damain.R;
import com.example.common.service.UserService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author renyitong
 * @description: TODO
 * @date 2023年07月11日
 */
@RestController
public class UserController {
    @DubboReference
    private UserService userService;

    @GetMapping("/user/list")
    public R getUsersBySexList(Integer sex, Integer pageNo, Integer pageSize) {
        R result = userService.selectList(sex, pageNo, pageSize);
        return result;
    }

}
